package com.huahua.mapper;

import com.huahua.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2021/6/3 21:38
 */
@Mapper
@Repository
public interface UserMapper {

    List<User> getAllUser();

    List<User> queryUserList();         //本实例中 实际用到的只有这个

    User queryUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int id);
}
